<div id="maincontent">
	<div id="content">
    
    
    
    
    <div class="box1">
      <h3><?php echo lico_lang('short', 'short1.page.title'); ?></h3>
    	<?php
  			$num1 = (($numusers / 5) * 100);
  			$num2 = (($numusers / 0.2) * 100);
  			
  			echo str_replace("#date#", lico_getdatetime(), lico_lang('short', 'short1.line1'))."<br/><br/>\n";
  			echo str_replace("#num#", number_format($numusers), lico_lang('short', 'short1.line2'))."<br/>\n";
  			echo str_replace("#num#", number_format($nummachines), lico_lang('short', 'short1.line3'))."<br/><br/>\n";
  			echo str_replace("#num1#", number_format($num1), str_replace("#num2#", number_format($num2), lico_lang('short', 'short1.line4')))."<br/>\n";
  			
  		?>
    </div>
    
    
    
    
    
    
    
    
    <div class="box2">
      <h3><?php echo lico_lang('short', 'short2.page.title'); ?></h3>
      <div class="statsitem">
        <label><?php echo lico_lang('short', 'user.stats.description'); ?></label>
        <img src="/charts/_stats_number_users_14days.png?<?php echo time(); ?>" alt="" title=""/>
        <img src="/charts/_stats_number_users_12months.png?<?php echo time(); ?>" alt="" title=""/>
        <img src="/charts/_stats_number_users_20years.png?<?php echo time(); ?>" alt="" title=""/>
        <img src="/charts/_stats_number_users_40years.png?<?php echo time(); ?>" alt="" title=""/>
      </div>
      <div class="statsitem">
        <label><?php echo lico_lang('short', 'machine.stats.description'); ?></label>
        <img src="/charts/_stats_number_machines_14days.png?<?php echo time(); ?>" alt="" title=""/>
        <img src="/charts/_stats_number_machines_12months.png?<?php echo time(); ?>" alt="" title=""/>
        <img src="/charts/_stats_number_machines_20years.png?<?php echo time(); ?>" alt="" title=""/>
        <img src="/charts/_stats_number_machines_40years.png?<?php echo time(); ?>" alt="" title=""/>
      </div>
    </div>
    
    
    
    
    
    
    
    <?php
    $class = "odd";
    ?>
    <div class="box3">
      <h3><?php echo lico_lang('short', 'short3.page.title'); ?></h3>
        <?php
        include_once("libs/xml.class.php");
        $xml = file_get_contents("xml/where_users_live.xml");
        $domObj = new xmlToArrayParser($xml);
        $domArr = $domObj->array;
        $generated = $domArr['statistics']['_']['generated'];
        ?>
        <div class="description"><?php echo lico_lang('short', 'short3.page.description'); ?><br/><small>(Generated: <?php echo $generated; ?>)</small></div>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><strong>Nr.</strong></span></li>
            <li class="infotable-li code"><span><strong>Code</strong></span></li>
            <li class="infotable-li country"><span><strong>Country</strong></span></li>
            <li class="infotable-li users"><span><strong>Users</strong></span></li>
            <li class="infotable-li machines"><span><strong>Machines</strong></span></li>
            <li class="infotable-li population"><span><strong>Population</strong></span></li>
          </ul>
        </div>
      <?php
      for ($a=0; $a<count($domArr['statistics']['line']); $a++) {
        if ($class == "odd") $class = "even"; else $class = "odd";
        $line = $domArr['statistics']['line'][$a];
        ?>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li number"><span><?php echo $line['number']; ?></span></li>
            <li class="infotable-li code"><span><?php echo $line['code']; ?></span></li>
            <li class="infotable-li country"><span><?php echo $line['country']; ?></span></li>
            <li class="infotable-li users"><span><?php echo number_format($line['users']); ?></span></li>
            <li class="infotable-li machines"><span><?php echo number_format($line['machines']); ?></span></li>
            <li class="infotable-li population"><span><?php echo number_format($line['population']); ?></span></li>
          </ul>
        </div>
        <?php
      }
      ?>
    </div>
    
    
    
    
    
    
    
    
    
    <?php
    $class = "odd";
    ?>
    <div id="whereused" class="box4">
      <h3><?php echo lico_lang('short', 'short4.page.title'); ?></h3>
        <?php
        include_once("libs/xml.class.php");
        $xml = file_get_contents("xml/where_people_use_linux.xml");
        $domObj = new xmlToArrayParser($xml);
        $domArr = $domObj->array;       
        $generated = $domArr['statistics']['_']['generated'];
        ?>
        <div class="description"><?php echo lico_lang('short', 'short4.page.description'); ?><br/><small>(Generated: <?php echo $generated; ?>)</small></div>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li users"><span><strong>Place</strong></span></li>
            <li class="infotable-li machines"><span><strong>Users</strong></span></li>
            <li class="infotable-li percent"><span><strong>Percent</strong></span></li>
          </ul>
        </div>
      <?php
      for ($a=0; $a<count($domArr['statistics']['line']); $a++) {
        if ($class == "odd") $class = "even"; else $class = "odd";
        $line = $domArr['statistics']['line'][$a];
        ?>
        <div class="infotable-line <?php echo $class; ?>">
          <ul class="infotable-ul">
            <li class="infotable-li users"><span><?php echo $line['where']; ?></span></li>
            <li class="infotable-li machines"><span><?php echo number_format($line['users']); ?></span></li>
            <li class="infotable-li percent"><span><?php echo lico_PercentBar($line['percent']); ?></span></li>
          </ul>
        </div>
        <?php
      }
      ?>
    </div>
    
    
    
    
    
    
    <div id="whereused" class="box5">
      <h3><?php echo lico_lang('short', 'short5.page.title'); ?></h3>
      <div class="description"><?php echo lico_lang('short', 'short5.page.description'); ?></div>
      <img src="/charts/_stats_when_users_started.png?<?php echo time(); ?>"/>
    </div>
    
    
    
    
    
    
    
    
    
  </div>
</div>
